package com.ztc.ZtcTransportArea.bean;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 公司与区域关系表.
 */

@Entity
@Table(name = "ztc_transport_area")
public class ZtcTransportArea implements BaseEntity {

    private String id;//id

    private String transportId;//公司id

    private String areaId;//区域id


    public void setId(String id) { this.id = id; }

    public void setTransportId(String transportId) {this.transportId = transportId;  }

    public void setAreaId(String areaId) { this.areaId = areaId; }

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId() {  return this.id;}

    @Column(name ="transport_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getTransportId() {   return this.transportId; }

    @Column(name ="area_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getAreaId() {  return this.areaId; }
}
